
#ifndef LEET_CODE_SORT_H
#define LEET_CODE_SORT_H


int *mergeSort(int *nums, int numsSize);

void merge(int *nums, int left, int mid, int right, int *temp);

void sort(int *nums, int numsSize, int left, int right, int *temp);

int search(int *nums, int numsSize, int goal);

int getIndex(int *nums, int numsSize, int goal, int from);

#endif //LEET_CODE_SORT_H
